package day2.demo2.service;

import day2.demo2.entity.Product;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class ProductService {
   public List<Product> findAllProducts(){
       return Arrays.asList(new Product(1,"手表",1100),new Product(2,"电视",100));
    }
}